<?php $this->content->begin();
$modelCat = new Areas_Product_Models_Category();
?>
	<div class="detail-product-image">
                        	<div style="width: 400px; min-height: 400px; border: 1px solid #c0c0c0; margin: 5px 5px 5px 0px;">
	                        	<a href="<?php echo $product->image?>" class="nivoZoom"><img id="main-img" src="<?php echo $product->image?>"/></a>
                            </div>
                            <div class="list-img">
                            	<ul>
                                    <li class="first"><img class="sub-img" src="<?php echo $product->image?>" name="<?php echo $product->name?>"/></li>
                                    <?php if ($product->subimage != ""):?>
                                    <?php 
                                    	$arrSubImage = explode(' ', $product->subimage);
                                    	foreach ($arrSubImage as $subimage)
                                    	{
                                    ?>
                                   	<li><img class="sub-img" src="<?php echo $subimage?>" name="<?php echo $product->name?>"/></li>
                                    <?php }?>
                                    <?php endif;?>
                                </ul>
                            </div>
                        </div>
                        <div class="common-infor-product">
                        	<table>
                            	<tr>
                                	<td class="label-infor"><?php echo $this->resource->product_name?>:</td>
                                    <td><?php echo $product->name?></td>
                                </tr>
                                <tr>
                                	<td class="label-infor"><?php echo $this->resource->product_id?>:</td>
                                    <td><?php echo $product->id?></td>
                                </tr>
                                <tr>
                                	<td class="label-infor"><?php echo $this->resource->product_group?>:</td>
                                    <td><?php echo $modelCat->getName($product->category_id)?></td>
                                </tr>
                                <tr>
                                	<td class="label-infor"><?php echo $this->resource->status?>:</td>
                                    <td><?php echo $this->resource->still_have?></td>
                                </tr>
                                <tr>
                                	<td class="label-infor"><?php echo $this->resource->origin?>:</td>
                                    <td><?php echo $product->origin?></td>
                                </tr>
                            </table>
                            <p style="margin-top: 10px;">
                            	<img src="<?php echo $this->url->content("Content/VietTrung/img/contact.jpg")?>" width="50" style="float: left; margin-right: 5px;"/>
                            	<span style="font-size: 14px; font-weight: bold;">
                            		<?php echo $this->resource->contact_to_buy?>
                            	</span>
                            </p>
                        </div>
                        <div class="detail-infor-product">
                        	<h3><?php echo $this->resource->product_description?>:</h3>
							<?php echo $product->headline;?>
                        </div>
                        
<script type="text/javascript">
	$(document).ready(function(){
		$(".sub-img").click(function(){
			$("#main-img").attr("src", $(this).attr("src"));
		});
	});
</script>
<?php $this->content->end()?>

<?php $this->section->begin('breadcrumb')?>
<ul>
	<li><a href="<?php echo $this->url->action("index", "Index", "")?>"><?php echo $this->resource->home_page?></a></li>
	<li class="separator">></li>
	<li><a href="<?php echo $this->url->action("index", "Index", "Product")?>"><?php echo $this->resource->product?></a></li>
	<li class="separator">></li>
	<li class="current"><a href="<?php echo $this->url->action("category", "Index", "Product", array($product->category_id))?>"><?php echo $modelCat->getName($product->category_id)?></a></li>
</ul>
<?php $this->section->end()?>